/**
 * 
 */
package com.effectivsocial.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.data.domain.Pageable;
import com.effectivsocial.domain.Lov;

import com.effectivsocial.repository.LovRepository;
import com.effectivsocial.service.api.AbstractService;
import com.effectivsocial.service.api.LovService;

/**
 * @author Dhrubo
 *
 */
@Named

public class LovServiceImpl extends AbstractService<Lov,String> implements LovService {
	
	
	private static final long serialVersionUID = 1L;
	@Inject
	private LovRepository repository;

	

	@Override
	public Lov findOne(String id) {
		return repository.findOne(id);
		
	}

	@Override
	public Lov findByTypeAndName(String type, String name) {
		return repository.findByTypeAndName(type, name);
	}

	@Override
	public List<Lov> findByType(String type) {
		return repository.findByType(type);
	}

	

	@Override
	public long count() {
		return repository.count();
	}


	@Override
	public List<Lov> findByDeleted(Pageable pageable, boolean deleted) {
		return repository.findByDeleted(pageable, deleted);
	}
	
	@Override
	protected void initInternal() {
		setRepository(repository);

	}

	
}
